package at.tugraz.akm.forume.bean;

/**
 * 
 * @author
 */

public class Reply {

	private Integer id;

	private String date;

	private String content;

	private String user;

	private Thread threadId;

	public Reply() {
	}

	public Reply(Integer id) {
		this.id = id;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	public Thread getThreadId() {
		return threadId;
	}

	public void setThreadId(Thread threadId) {
		this.threadId = threadId;
	}

	@Override
	public boolean equals(Object object) {
		if (!(object instanceof Reply)) {
			return false;
		}
		Reply other = (Reply) object;
		if ((this.id == null && other.id != null)
				|| (this.id != null && !this.id.equals(other.id))) {
			return false;
		}
		return true;
	}

	@Override
	public String toString() {
		return "at.tugraz.akm.forume.bean.Reply[ id=" + id + " ]";
	}

}
